package com.common.shared;

import java.util.ArrayList;

import com.google.gwt.user.client.rpc.IsSerializable;

public class ClSelectionItem implements IsSerializable {

	/**
	 * 
	 */

	private long id;
	private String value;
	private long parentId;

	private transient ClSelectionItem parentValue;
	private transient ArrayList<ClSelectionItem> subItems = new ArrayList<ClSelectionItem>();

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public long getParentId() {
		return parentId;
	}

	public void setParentId(long parentId) {
		this.parentId = parentId;
	}

	public ClSelectionItem getParentValue() {
		return parentValue;
	}

	public void setParentValue(ClSelectionItem parentValue) {
		this.parentValue = parentValue;
	}

	public ArrayList<ClSelectionItem> getSubItems() {
		return subItems;
	}

	public void setSubItems(ArrayList<ClSelectionItem> subItems) {
		this.subItems = subItems;
	}

	@Override
	public String toString() {
		return value;
	}
}
